package MyTimer;

public class Task {

    public static void main(String[] args) {
        MyTimer myTimer = new MyTimer();
        myTimer.schedule(()->{
            System.out.println("任务1");
        },0);

        myTimer.schedule(()->{
            System.out.println("任务2");
        },0);

        myTimer.schedule(()->{
            System.out.println("任务3");
        },0);

    }
}
